#pragma once

#include <interface/wnd_capture_ex_interface.h>

// wnd_capture

class wnd_capture : public CWnd
{
	DECLARE_DYNAMIC(wnd_capture)

public:
	wnd_capture();
	virtual ~wnd_capture();

protected:
	DECLARE_MESSAGE_MAP()

	typedef int (__stdcall *CAMERASUBAREA)(HWND a);

enum edlg_data
{
	e_delay_save_pic_timer_id = 1234,
};

public:
	BOOL capture(HWND notify_wnd);
	bool set_pic_save_path(const char* path);

protected:
	CString make_fn();
	int find_image_type(const char* ptr_fn);
	HWND notify_wnd_;
	CString str_save_path_;
public:
	afx_msg void OnTimer(UINT_PTR nIDEvent);
};


